﻿using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace Metro.Kashikoi.ServiceContract.Item
{
    /// <summary>
    /// This class contains the category detailed information.
    /// </summary>
    [DataContract(IsReference = true)]
    [Table("ColorCategories")]
    public class ColorCategory : Category
    {
        /// <summary>
        /// Gets or sets Name.
        /// </summary>
        [Range(0, int.MaxValue)]
        [RangeValidator(0, RangeBoundaryType.Inclusive, int.MaxValue, RangeBoundaryType.Inclusive)]
        public int ColorCode { get; set; }
    }
}
